package com.homegoods.orderinfodetail.model;


import com.alibaba.fastjson.annotation.JSONField;
import com.homegoods.orderinfodetail.item.PostOrderInfoItem;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

public class ComdiyBean extends BaseModel<PostOrderInfoItem> {
    /**
     * * comdiyname:商品名，
     * * comdiyimg：商品图片，
     * * comdiytxt：商品简介，
     * * comdiynum：商品数量，
     * * data：选择的参数，
     * * oceannum：大洋数量，
     * * price：支付的人民币，
     * * currentprice：现价
     * "ommodity": [{
     *      *      * 					"ommodity_name": "ch.南极人男士内衣秋衣秋裤套装薄款保暖内衣棉男棉毛衫基础打底印花.2019/4/18 15:02:39",
     *      *      * 					"factory": "factory_7fd80ea9b2674cf49bad5c3bf64a25fb",
     *      *      * 					"ommodity_sid": "commodity_e52f2ef387b5453199e47b283e9ddeb8",
     *      *      * 					"ommodity_price": 199,
     *      *      * 					"ommodity_attr": "颜色:藏青，尺码:L",
     *      *      * 					"ommodity_num": 1,
     *      *      * 					"ommodity_icon": "/upath/2018/11/5/17545216854584ufi.png",
     *      *      * 					"ommodity_cash": 1
     *      *      *                }]
     */
    @JSONField(alternateNames = {"ommodity_name"})
    private String comdiyname;
    @JSONField(alternateNames = {"ommodity_icon"})
    private String comdiyimg;
    private String comdiytxt;
    @JSONField(alternateNames = {"ommodity_num"})
    private String comdiynum;
    @JSONField(alternateNames = {"ommodity_attr"})
    private String data;
    private String oceannum;
    @JSONField(alternateNames = {"ommodity_price"})
    private String price;
    private String currentprice;
    private String ommodity_sid;
    /**
     * 是否被选中
     */
    private boolean isChildSelected;

    public String getComdiyname() {
        return comdiyname;
    }

    public void setComdiyname(String comdiyname) {
        this.comdiyname = comdiyname;
    }

    public String getComdiyimg() {
        return comdiyimg;
    }

    public void setComdiyimg(String comdiyimg) {
        this.comdiyimg = comdiyimg;
    }

    public String getComdiytxt() {
        return comdiytxt;
    }

    public void setComdiytxt(String comdiytxt) {
        this.comdiytxt = comdiytxt;
    }

    public String getComdiynum() {
        return comdiynum;
    }

    public void setComdiynum(String comdiynum) {
        this.comdiynum = comdiynum;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public String getOceannum() {
        return oceannum;
    }

    public void setOceannum(String oceannum) {
        this.oceannum = oceannum;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }

    public String getCurrentprice() {
        return currentprice;
    }

    public void setCurrentprice(String currentprice) {
        this.currentprice = currentprice;
    }

    public boolean isChildSelected() {
        return isChildSelected;
    }

    public void setChildSelected(boolean childSelected) {
        isChildSelected = childSelected;
    }

    public String getOmmodity_sid() {
        return ommodity_sid;
    }

    public void setOmmodity_sid(String ommodity_sid) {
        this.ommodity_sid = ommodity_sid;
    }

    @Override
    public PostOrderInfoItem createItem(MultiTypeAdapter adapter) {
        if (item == null) {
            item = new PostOrderInfoItem(this);
        }
        return item;
    }
}
